package com.diaohaiwen.basic.file;

import com.diaohaiwen.framework.db.generator.MybatisGenerator;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BasicFileApplication {

    public static void main(String[] args) {
//        SpringApplication.run(BasicFileApplication.class, args);
        String url = "jdbc:postgresql://127.0.0.1:5432/files?autoReconnect=true";
        String username = "postgres";
        String password = "postgres";

        MybatisGenerator.builder()
                .author("刁海文")
                .url(url)
                .username(username)
                .password(password)
                .clazz(BasicFileApplication.class)
                .enableController(true)
                .enableService(true)
                .enableImpl(true)
                .build()
                .generate();
    }

}
